package io.renren.modules.gengyun.controller;

import io.renren.common.Result;
import io.renren.modules.gengyun.feign.ScheduledFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("gengyun/acquisition")
public class ScheduledFeignController {

    @Autowired
    private ScheduledFeignService scheduledFeignService;

    @RequestMapping("/start")
    public Result startSchedule() {
        return scheduledFeignService.startSchedule();
    }

    @RequestMapping("/pause")
    public Result pauseSchedule() {
        return scheduledFeignService.pauseSchedule();
    }

    @RequestMapping("/resume")
    public Result resumeSchedule() {
        return scheduledFeignService.resumeSchedule();
    }

    @RequestMapping("/stop")
    public Result stopSchedule() {
        return scheduledFeignService.stopSchedule();
    }
}
